package org.dromara.system.domain.bo;

import org.dromara.system.domain.WbTestReport;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 【请填写功能名称】业务对象 wb_test_report
 *
 * @author Lion Li
 * @date 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WbTestReport.class, reverseConvertGenerate = false)
public class WbTestReportBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long companyId;

    /**
     * 公司名称
     */
    @NotBlank(message = "公司名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String companyName;

    /**
     * 物料描述
     */
    @NotBlank(message = "物料描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialRemark;

    /**
     * 产品型号规格
     */
    @NotBlank(message = "产品型号规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productModel;

    /**
     * 报告编号
     */
    @NotBlank(message = "报告编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reportId;

    /**
     * 试验类型
     */
    @NotBlank(message = "试验类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String testType;

    /**
     * 检验报告出具机构
     */
    @NotBlank(message = "检验报告出具机构不能为空", groups = { AddGroup.class, EditGroup.class })
    private String testReportIssuingAgency;

    /**
     * 其他报告出具机构
     */
    @NotBlank(message = "其他报告出具机构不能为空", groups = { AddGroup.class, EditGroup.class })
    private String otherReportIssuingAgency;

    /**
     * 报告出具日期
     */
    @NotNull(message = "报告出具日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date reportIssuingTime;

    /**
     * 有效期
     */
    @NotNull(message = "有效期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date expirationDate;


}
